<?php
$this->breadcrumbs = array(
	'Questions',
);

$this->menu = array(
	array('label'=>'List Archive', 'url'=>array('archive')),
	array('label'=>'Submit Question', 'url'=>array('create')),
	array('label'=>'Manage Question', 'url'=>array('admin')),
);
?>

<div class="flash-notice round">
	Q&amp;A Section is now powered by MarkDown.<br />
	Click
	<?php
	$url = 'http://daringfireball.net/projects/markdown/syntax';
	$htmlOptions = array('target'=>'_blank');
	echo CHtml::link('here', $url, $htmlOptions);
	?>
	for more info.
</div>

<h1>Questions</h1>

<?php if (!Yii::app()->user->isGuest): ?>
	<div id="question-form" class="view" style="display:none">
		<?php
		$data = array('model'=>$model);
		echo $this->renderPartial(
			'application.modules.qa.views.question._form', $data
		);
		?>
	</div>

	<?php
	Yii::app()->clientScript->registerScriptContent(
		'index', 'application.modules.qa.views.question.index',
		CClientScript::POS_READY
	);
	?>

<?php endif; ?>

<?php
$options = array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
);
$this->widget('zii.widgets.CListView', $options);
?>
